package com.ruoyi.data.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 积分记录对象 data_score
 *
 * @author zzp
 * @date 2022-09-30
 */
public class DataScore extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 部门ID
     */
    private Long deptId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 用户姓名
     */
    @Excel(name = "用户姓名")
    private String nickName;

    /**
     * 积分
     */
    @Excel(name = "积分")
    private Integer score;

    /**
     * 查询时间段兑换积分
     */
    //@Excel(name = "查询时间段兑换积分")
    private Integer timeScore;

    /**
     * 当前已兑换积分
     */
    //@Excel(name = "当前已兑换积分")
    private Integer scoreUse;

    /**
     * 当前剩余积分
     */
    @Excel(name = "当前剩余积分")
    private Integer scoreCurrent;

    /**
     * 积分类型
     */
    @Excel(name = "积分类型", readConverterExp = "in=增加,out=兑换")
    private String scoreType;

    /**
     * 积分描述
     */
    @Excel(name = "积分描述")
    private String scoreDesc;

    /**
     * 用户IDS
     */
    Long[] userIds;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getScore() {
        return score;
    }

    public void setScoreCurrent(Integer scoreCurrent) {
        this.scoreCurrent = scoreCurrent;
    }

    public Integer getScoreCurrent() {
        return scoreCurrent;
    }

    public Integer getScoreUse() {
        return scoreUse;
    }

    public void setScoreUse(Integer scoreUse) {
        this.scoreUse = scoreUse;
    }

    public Integer getTimeScore() {
        return timeScore;
    }

    public void setTimeScore(Integer timeScore) {
        this.timeScore = timeScore;
    }

    public void setScoreType(String scoreType) {
        this.scoreType = scoreType;
    }

    public String getScoreType() {
        return scoreType;
    }

    public void setScoreDesc(String scoreDesc) {
        this.scoreDesc = scoreDesc;
    }

    public String getScoreDesc() {
        return scoreDesc;
    }

    public Long[] getUserIds() {
        return userIds;
    }

    public void setUserIds(Long[] userIds) {
        this.userIds = userIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deptId", getDeptId())
                .append("userId", getUserId())
                .append("nickName", getNickName())
                .append("score", getScore())
                .append("scoreCurrent", getScoreCurrent())
                .append("scoreType", getScoreType())
                .append("scoreDesc", getScoreDesc())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
